<!DOCTYPE html>
<html class="responsive-540" lang="zh-CN" >
<head>
    <meta charset="utf-8">
    <meta name="keywords" content="Bidcms,微信商城,粉丝营销,微信商城运营" />
    <meta name="description" content="Bidcms是帮助商家在微信上搭建微信商城的平台，提供店铺、商品、订单、物流、消息和客户的管理模块，同时还提供丰富的营销应用和活动插件。" />
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="cleartype" content="on">
    <!-- dns prefetch -->

    <link rel="icon" href="http://kdt-static.qiniudn.com/v2/image/favicon.ico" />
    <title><?php echo $json[0]['title'];?></title>
    <!-- _global -->
    <script> 
	var _global ='${global.base}'de($GLOBALS['_global']['mp_data']);?>;
	_global.url=''${global.url}'';
	_global.query_path="/show/tag";
	_global.module="show";
	_global.controller="show_controller";
	_global.action="tag_action";
	window.UEDITOR_HOME_URL = _global.url.base + "/static/v2/vendor/ueditor/dist/";
    
</script>


    <!-- meta viewport -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    
    <!-- CSS -->
    <link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/base.css" >    
	<link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/projects/showcase.css" >        
	</head>

<body class=" ">
    <!-- container -->
    <div class="container">
    <div class="content js-mini-height">
		<?php include bidcms_template('global_ad');?>  
        <div class="content-body">
			<?php if($json[0]['show_tag_title']){?>
				<div class="custom-title">
					<h2 class="title"><?php echo $json[0]['title'];?></h2>
				</div>
			<?php }?>
			<!-- 富文本内容区域 -->
			<?php if($json[0]['content']){?>
				<div class="custom-richtext">
				<?php echo $json[0]['content'];?>
				</div>
			<?php }?>   
															
						
			<!-- 商品区域 -->
			<!-- 展现类型判断 -->
			<?php goods_list($list,$json[0]);?>
			<?php include bidcms_template('global_block');?>
        </div>
		  
		<?php include bidcms_template('global_sidebar');?>  
		<?php include bidcms_template('global_shopnav');?>                  
	</div>
	<?php include bidcms_template('global_copyright');?> 
</div>

    <!-- JS -->
    <script src="${webRoot}/static/v2/vendor/jquery-2.0.3.min.js" ></script>   

    <script src="${webRoot}/static/v2/build/wap/base.js" ></script> 
    <script id='tmpl-sku' type='text/template'>
        <div class="goods-header layout-title sku-box-shadow">
            </div>
    
    <div class="adv-opts layout-content">
        <div class="goods-models js-sku-views"></div>
        <div class="confirm-action content-foot"></div>
    </div>
</script>
            <script src="${webRoot}/static/v2/vendor/u_b.js" ></script>                            
			<script src="${webRoot}/static/v2/build/wap/showcase/sku.js" ></script>
			<script src="${webRoot}/static/v2/build/wap/showcase/modules/goods_list.js" ></script>                    
                
                
        
    
    <script src="${webRoot}/static/v2/build/wap/showcase/index.js" ></script>       
	<a id="global-cart" class="global-cart-wrap hide not-empty" href="http://wap.bidcms.com/v2/trade/cart?bid_id=<?php echo $GLOBALS['bidcms_store_id'];?>">
</a>
<script>
window.refreshCartIcon = function(){
    !!$ && $.ajax({
        url: window._global.url.www + '/trade/cart/count.php',
        type: 'GET',
        timeout: 5000,
        dataType : "json",
        success: function(resp) {
            if(parseInt(resp.code)===0) {
                var count = parseInt(resp.data);
                if(count>0) {
                    $('#global-cart').removeClass('hide');
                } else {
                    $('#global-cart').addClass('hide');
                }
            }
        }
    });
};
refreshCartIcon();
</script>
</body>
</html>